package com.knight.study.patterns.tujie.factory;

/**
 * @Author knight
 * @Date 2024/9/10 15:45
 */

public class FactoryMains {
    public static void main(String[] args) {
        Factory factory = new IDCardFactory();
        final Product card1 = factory.create("1");
        final Product card2 = factory.create("2");
        final Product card3 = factory.create("3");

        card1.use();
        card2.use();
        card3.use();
    }
}
